import Mock from 'mockjs';
export default [
  {
    type: 'post',
    url: '/host/cloud/cooperation/delay/history',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|20-30": [
          {
            "id|+1": 0,
            "createTime": '@datetime("yyyy-MM-dd HH:mm:ss")',
            "carId|10000-99999": 17658,
            "type|1": ['轿车', '客车', '半挂车', '越野车', '专用汽车', '载货汽车', '牵引车', '自卸汽车'],
            "delay|10-500": 80,
            "perceptionDelay|10-500": 100
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/cooperation/delay/carType',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|5": [
          {
            "type|+1": ['轿车', '客车', '半挂车', '越野车', '专用汽车', '载货汽车', '牵引车', '自卸汽车'],
            "value|1-100": 100
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/cooperation/delay/whole',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|11": [
          {
            "delay|+1": [0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500],
            "value|0.1": 1
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/cooperation/delay/perception',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|11": [
          {
            "delay|+1": [0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500],
            "value|0.1": 1
          }
        ]
      })
    }
  },
]